const Koa = require('koa');
const KoaStatic = require('koa-static');
const path = require('path');
const host = 'http://localhost';
const port = 1314;
const app = new Koa();
const home = KoaStatic(path.resolve(__dirname,'../public/index.html'));

app.use(home);

app.listen(port,() => {
    console.log(`web 服务在 ${host}:${port} 上启动起来了`);
})



